package jgl.vajra.driver.part.home.fragment;

import java.util.ArrayList;
import java.util.List;

import jgl.vajra.driver.R;
import jgl.vajra.driver.part.home.viewModel.OrderPageListViewModel;
import jgl.vajra.driver.widget.base.BaseListFragment;
import jgl.vajra.driver.widget.mvvm.factory.CreateViewModel;
import jgl.vajra.driver.widget.recyclerView.RefreshRecyclerNetConfig;

@CreateViewModel(OrderPageListViewModel.class)
public class OrderPageListFragment extends BaseListFragment<OrderPageListViewModel, String> {
    @Override
    protected RefreshRecyclerNetConfig getRefreshRecyclerNetConfig() {
        return null;
    }

    @Override
    protected int getItemLayout() {
        return R.layout.item_order_page_list;
    }

    @Override
    public void onItemClick(int position, String itemData) {

    }

    @Override
    public void initView() {
        super.initView();

        List<String> list = new ArrayList<>();
        list.add("");
        list.add("");
        list.add("");
        list.add("");
        list.add("");
        list.add("");
        mAdapter.refresh(list);

        mBinding.recyclerView.setRecyclerViewBackgroundRes(R.color.gray_f7);
    }

}
